package com.yonyou.pmclouds.plan.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.plan.entity.ScheduleVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ScheduleMapper extends BaseMapper<ScheduleVO> {
    List<ScheduleVO> queryByPkProject(@Param("pkProject") String pkProject);

    List<ScheduleVO> queryByPkOriginal(@Param("pkOriginal") String pkOriginal);

    List<ScheduleVO> queryByIds(@Param("pkSchedules") String[] pkSchedules);

    List<ScheduleVO> queryByTenantId(@Param("tenantId") String tenantId);

    ScheduleVO[] queryByIdsAndProjectId(@Param("projectIds")String[] projectIds, @Param("ids")String[] ids, @Param("startDate") Date startDate, @Param("endDate")Date endDate);

    ScheduleVO queryByPkOriginalAndVersion(@Param("pkOriginal")String pkOriginal,@Param("version")int version);

}
